package com.carrot.gateway.property;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 权限
 */
@Data
@EqualsAndHashCode(callSuper = false)
//@RefreshScope  // 刷新nacos配置
@Component
@ConfigurationProperties(prefix = SecurityOAuth2Properties.OAUTH2_CLIENT)
public class SecurityOAuth2Properties {

    static final String OAUTH2_CLIENT = "oauth2";

    private String issuerUri;

    private Map<String,String> energyClient;

    private Map<String,String> energyAppletClient;

    private String scope;

    private String publicKey;

    private String privateKey;

    private String clientId;

    private String clientSecret;
}
